package com.ecnu.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ecnu.system.domain.ProjectUser;
import com.ecnu.system.domain.dto.ProjectUserDTO;
import com.ecnu.system.domain.dto.ProjectUserFalseDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface ProjectJoinMapper extends BaseMapper<ProjectUser> {

    int insertProjectUser(ProjectUser user);

    List<ProjectUser> selectUnauditUser(@Param("status") String status);

    List<ProjectUser> selectProUserById(@Param("dto") ProjectUserDTO projectUserDTO, @Param("proId") String proId);

//    int updateJoinStatus(@Param("userId") String userId, @Param("proId") String proId,@Param("proId") String number);

    ProjectUser selectProJoinStatus(@Param("userId") String userId,@Param("proId") String proId);

    int updateJoinStatus(@Param("dto") ProjectUserFalseDTO dto);
}
